package top.zy.service.zymallgoodsservice.category.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.zy.service.zymallgoodsinterface.entity.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectCategoryListByPid(Long pid);

    List<Long> selectCategoryIdByBrandId(@Param("brandId") Long brandId);

    List<Category> selectCategoryListByIds(@Param("ids") List<Long> ids);
}